package com.ruoyi.room.controller;


import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.room.service.ITbFloorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author author
 * @since 2024-08-29
 */
@RestController
@RequestMapping("/floor/")
/*
* TODO
*   1.楼栋管理页面的楼栋管理功能实现
* */
public class TbFloorController {

    @Autowired
    ITbFloorService floorService;

    @GetMapping("getFloor")
    public AjaxResult getFloor(){
        return AjaxResult.success(floorService.list());
    }
}
